#ifndef _ARRAY_H
#define _ARRAY_H

const size_t DEFAULT_CAPACITY = 2;

class Array
{
public:
	Array(size_t size);
	Array();
	Array(const Array &rhs);
	~Array();
	Array& operator= (const Array &rhs);

	void push_back(int v);
	int get(size_t index) const;
	void set(size_t index, int value);
	size_t size() const;

private:
	void swap(Array &obj);
private:
	int *_ar;
	size_t _size;
	size_t _capacity;
};

#endif //#ifndef _ARRAY_H

